/**
 * Created by ASUS on 2018/1/9.
 */
function initLogin(){
    var loginVueObj = new Vue({
        el:"#mainBox",
        data:{
            loginType:0,
            isTypeOneInputTxtFocus:true,
            isOpenEyes:false,
            loginTypeOneUserName:"",
            loginTypeOnePassword:"",
            loginTypeTwoPhoneNumber:"",
            loginTypeTwoCode:"",
            passwordShow:false
        },
        methods:{
            clearTxt:function(){
                this.loginTypeOneUserName = ""
            },
            showPassword:function () {
                this.passwordShow = !this.passwordShow
            },
            changeType:function(type){
                this.loginType = type
            },
            goLogin:function(){
                $("#loginForm").submit();
            }
        },
        directives: {
            focus: {
                // 指令的定义
                inserted: function (el) {

                }
            }
        }
    })
}